package com.sl.au.service;

import java.util.List;
import com.sl.au.entity.SaleArea;
import com.sl.au.entity.Section;
import com.sl.au.entity.SectionArea;
import com.sl.au.repository.SectionAreaRepository;
import com.sl.au.repository.SectionRepository;
public interface SectionService extends BaseService {
	
	SectionRepository getRepository();
	
	SectionAreaRepository getSARepository();

	/**
	 * 获取分页数据
	 * 
	 * @param start
	 * @param length
	 * @param key
	 * @param orderName
	 * @param dir
	 * @return
	 */
	List<Section> getPage(int start, int length, String key);
	
	//获得科室配置的片区//
	List<SectionArea> findSectionArea(int start, int length, String sectionId);
	
    //获得没被科室配置的片区//
	List<SaleArea> findNoSArea(int start, int length, String sectionId,String superior);
	
	//科室编辑
	 void patch(Section section);

	 List<SectionArea> findSectionAreaOne(String superior, String areaName);


}
